/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.logiclander.whozwho.core.jaxrs.ext.base;

import javax.ws.rs.core.Response;

/**
 *
 * @author logiclander
 */
public class NotFoundException extends RestAPIException {

  private static final long serialVersionUID = 4144285863448799575L;

  public NotFoundException() {
  }

  public NotFoundException(String message) {
    super(message);
  }

  public NotFoundException(Throwable cause) {
    super(cause);
  }

  public NotFoundException(String message, Throwable cause) {
    super(message, cause);
  }

  public NotFoundException(RestQueryKey queryKey) {
    super(queryKey);
  }

  public NotFoundException(RestQueryKey queryKey, String message) {
    super(queryKey, message);
  }

  public NotFoundException(RestQueryKey queryKey, Throwable cause) {
    super(queryKey, cause);
  }

  public NotFoundException(RestQueryKey queryKey, String message,
          Throwable cause) {
    super(queryKey, message, cause);
  }

  @Override
  public int getStatusCode() {
    return Response.Status.NOT_FOUND.getStatusCode();
  }

  @Override
  public String getStatusMessage() {
    return "Resource not found";
  }
}
